package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
@TableName("tb_user")
public class User {

  @TableId(value = "user_id", type = IdType.AUTO) // 指定主键字段和类型
  private Integer id; // user_id

  @TableField("user_name")
  private String username; // user_name

  @TableField("user_password")
  private String password; // user_password

  @TableField("user_email")
  private String email; // user_email

}
